package com.example.demo.bean;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @desc: <br/>
 * @author: Jingbo Hu<br/>
 * @time：2021年01⽉25⽇<br/>
 * @version：v1.0.0<br>
 */
public class SpringbeanTest {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:bean.xml");
        Springbean bean = context.getBean(Springbean.class);
        System.out.println(bean.getName());
    }
}
